//
// C++ Interface: cmdinteraction
//
// Description: 
//
//
// Author: Christophe Vandeplas <christophe@vandeplas.com>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef USE_LOADGEN_GUI   // this code is only if we are not using a gui


#ifndef CMDINTERACTION_H
#define CMDINTERACTION_H

#include <string>

using std::string;


/**
@author Christophe Vandeplas
*/
class CmdInteraction{
    public:

        CmdInteraction();

        ~CmdInteraction();

        void grabInput();
        bool parseCommand(string);

    private:
        void showHistory(int , int =0);
        bool checkThreadIdValidity(string&, int&);
        void list();
        void stats();
        void save(int =-1);
};

#endif


#endif // !USE_LOADGEN_GUI
